USE [IB_GENEL]
GO

/****** Object:  Table [LOG].[CRUD_LOG_ADHOC]    Script Date: 01/31/2013 14:11:02 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [LOG].[CRUD_LOG_ADHOC](
	[CrudLogAdhocKey] [int] IDENTITY(1,1) NOT NULL,
	[CrudUserID] [char](11) NOT NULL,
	[CrudMethodName] [varchar](max) NOT NULL,
	[CrudParameterValues] [varchar](max) NOT NULL,
	[CrudDate] [datetime] NOT NULL,
 CONSTRAINT [PK_CRUD_LOG_ADHOC] PRIMARY KEY CLUSTERED 
(
	[CrudLogAdhocKey] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Unique identifying information of user who made crud process. This identification may be national ID number or e-mail adres. Or anything you want.' , @level0type=N'SCHEMA',@level0name=N'LOG', @level1type=N'TABLE',@level1name=N'CRUD_LOG_ADHOC', @level2type=N'COLUMN',@level2name=N'CrudUserID'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'The name of Method that the query called from there' , @level0type=N'SCHEMA',@level0name=N'LOG', @level1type=N'TABLE',@level1name=N'CRUD_LOG_ADHOC', @level2type=N'COLUMN',@level2name=N'CrudMethodName'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Parameter and Values of parameters in query' , @level0type=N'SCHEMA',@level0name=N'LOG', @level1type=N'TABLE',@level1name=N'CRUD_LOG_ADHOC', @level2type=N'COLUMN',@level2name=N'CrudParameterValues'
GO

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'Crud process date' , @level0type=N'SCHEMA',@level0name=N'LOG', @level1type=N'TABLE',@level1name=N'CRUD_LOG_ADHOC', @level2type=N'COLUMN',@level2name=N'CrudDate'
GO

